import fetch from '@/utils/fetch'

const ValueApi = {
  // 规格组属性值列表
  getPageList (params) {
    return fetch({
      url: '/api/spec/value/page',
      method: 'get',
      params: params
    })
  },
  // 添加规格组属性值  
  add (params) {
    return fetch({
      url: '/api/spec/value/add',
      method: 'post',
      data: params
    })
  },
  // 修改规格组属性值
  update (id, params) {
    return fetch({
      url: '/api/spec/value/' + id,
      method: 'put',
      data: params
    })
  },
//   del (params,businessIdParams) {
//     return fetch({
//       url: '/api/spec/value/' + params,
//       method: 'delete',
//       data:businessIdParams
//     })
//   },
  del (params) {
    return fetch({
      url: '/api/spec/value',
      method: 'post',
      data:params
    })
  }
}
export default ValueApi
